home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000140_news@watsun.cc.columbia.edu _Tue Jan 19 14:45:55 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id OAA05486
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 19 Jan 1999 14:45:55 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id OAA19310
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 19 Jan 1999 14:34:14 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Subject: Re: not the same string with echo as with write file
  11. Date: 19 Jan 1999 19:34:12 GMT
  12. Organization: Columbia University
  13. Message-ID: <782mnk$irc$1@newsmaster.cc.columbia.edu>
  14. To: kermit.misc@mailrelay2.cc.columbia.edu
  15.  
  16. In article <36a5c258.1103743@news.calvacom.fr>,
  17. Dominique Ottello <do11@calva.net> wrote:
  18. : Le 18 Jan 1999 17:53:40 GMT, 
  19. : fdc@watsun.cc.columbia.edu (Frank da Cruz) ∩┐╜crivait :
  20. : > Try this:
  21. : > 
  22. : >   def print_PC open append \m(FileLog),-
  23. : >    write file {\v(Time) \fcontents(\%1)\13\10},close write-file
  24. : I tried and ..... there is the same problem.
  25. : I also tried many, many commands and syntax : \Fcontents, \Fliteral, with
  26. : or without parameter \%1, with the macro \m(Affiche) in place of parameter
  27. : \%1, with the complete string in place of parameter \%, with commands open,
  28. : write file and close not inside a macro....  and, all times, the command
  29. : "write file" evaluates the string and always give me : 
  30. :   C:\A320∩┐╜9M55\ECDD3022∩┐╜90118.005
  31. : in place of
  32. :   C:\A320\1459M55\ECDD3022\19990118.005
  33. : I bypass the problem by use of external DOS command echo and another macro
  34. : only for parameter that can be evaluated wrong
  35. :   def print_PC_DOS run echo \v(Time) \%1 >> \m(Filelog)
  36. : I'll use this new macro only to correct the line where the problem is
  37. : because the use of DOS command echo generate CR/LF on the screen.
  38. The proposed solution works in Kermit 95 and C-Kermit.  
  39. I also tried it in MS-DOS Kermit 3.16 Alpha and it worked there too.
  40.  
  41. Then I tried in 3.15.  Without enclosing \%1 in \fcontents():
  42.  
  43. [C:\K95\TMP] MS-Kermit>tak x.ksc
  44. copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 C:\A320\1459M55\ECDD3022\19990119.005
  45. 15:21:53 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 C:\A320∩┐╜9M55\ECDD302290119.005
  46.  
  47. After enclosing \%1 in \fcontents():
  48.  
  49. [C:\K95\TMP] MS-Kermit>tak x.ksc
  50. copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 C:\A320\1459M55\ECDD3022\19990119.005
  51. 15:19:49 copy C:\KERMIT\FICHIERS\AKA10AAJ.T1 (word wrap)
  52. C:\A320\1459M55\ECDD3022\19990119.005
  53.  
  54. This is using your macro definition, but replacing WRITE FILE by ECHO.
  55.  
  56. - Frank